package com.nbsystem.controller;

import com.nbsystem.entity.SysPer;
import com.nbsystem.entity.SysUser;

import java.util.ArrayList;
import java.util.List;

public class test {


    public static void main(String[] args) {

        //创建
        SysUser sysUser = new SysUser();

        List<SysPer> list = new ArrayList<>();
        SysPer sysPer = new SysPer();
        sysPer.setName("用户管理");
        SysPer sysPer1= new SysPer();
        sysPer1.setName("栏目管理");
        list.add(sysPer);
        list.add(sysPer1);
        sysUser.setSysPer(list);

        test(sysUser);
    }

    public static void test(SysUser sysUser){
        for (SysPer ss :sysUser.getSysPer()){
            System.out.println(ss.getName());
        }
    }

}
